package com.yd.tool;

import org.apache.shiro.crypto.hash.Md5Hash;

public class MD5Hash {
	
	public static void main(String[] args) {
		System.out.println(MD5Hash.getMd5HashPasswod("111"));
	}
	/**
	 * source: 明文 salt: 盐 hashIterations 哈希的次数
	 */
	public static String getMd5HashPasswod(String password) {

		return new Md5Hash(password,"YyDd",3).toString();
		
	}
}
